<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8"></meta>
    <#include "../include/common.html">
        <link rel="stylesheet" href="${absolutePath}/resource/css/admin.public.css?version=20160319"/>
        <script src="${absolutePath}/resource/js/admin.message.settings.js"></script>
        <title>我的消息设置</title>
        </head>
<body>
<#include "top.html">
    <div class="main">
        <#include "left.html">
            <div class="main-right">
                <div class="navigation"><span>消息管理</span>&nbsp;&gt;&nbsp;<span>消息设置</span></div>
                <div class="message-dy-title message-dy-title-first">一、订阅有乐我官方邮箱</div>
                <div class="message-dy-qq">
                    <#if messageSettings??>
                        你已经订阅
                        <#else>
                            <!--QQ邮件列表订阅嵌入代码-->
                            <script>var nId = "f1b1c83b142f73ec40fe7e8b94392f0ba45d8d6222124c0f", nWidth = "auto", sColor = "light", sText = "填写您的邮件地址，订阅我们的精彩内容：";
                            ;</script>
                            <script src="http://list.qq.com/zh_CN/htmledition/js/qf/page/qfcode.js"
                                    charset="gb18030"></script>
                    </#if>
                </div>
                <div class="message-dy-title">二、绑定邮箱</div>
                <div class="bind">
                    <#if messageSettings??>
                        你已经订阅,订阅的邮箱是：${messageSettings.email}
                        <#else>
                            绑定邮箱：
                            <span><input type="text" name="email"
                                         checkData="{reg:'email',rq:true,msg:'请输入正确的邮箱'}"/></span>
                            <a href="javascript:;" class="btn" id="bind-btn">绑定</a>
                            <span class="message-dy-email-dy">（输入上面订阅的邮箱地址）</span>
                    </#if>
                </div>
                <div class="message-dy-title">三、消息设置</div>
                <div>
                    <div>
                        有消息时给我发邮件
                        <label><input type="radio" name="msgType" value="0"
                            <#if messageSettings??&&messageSettings.msgType??&&messageSettings.msgType==0>
                                checked="checked"
                            </#if>
                            <#if messageSettings??>
                                <#else>
                                    checked="checked"
                            </#if>
                            />开启</label>
                        <label><input type="radio" name="msgType" value="1"
                            <#if messageSettings??&&messageSettings.msgType??&&messageSettings.msgType==1>
                                checked="checked"
                            </#if>
                            name="messageSetttings"/>关闭</label>
                    </div>
                    <div>
                        每天邮件提醒我去网站签到
                        <label><input type="radio" name="noticeSignInType" value="0"
                            <#if messageSettings??&&messageSettings.noticeSignInType??&&messageSettings.noticeSignInType==0>
                                checked="checked"
                            </#if>
                            />开启</label>
                        <label><input type="radio" name="noticeSignInType" value="1"
                            <#if messageSettings??&&messageSettings.noticeSignInType??&&messageSettings.noticeSignInType==1>
                                checked="checked"
                            </#if>
                            <#if messageSettings??>
                                <#else>
                                    checked="checked"
                            </#if>
                            />关闭</label>
                    </div>
                    <div>
                        <a href="javascript:;" class="btn" id="save-btn">确定</a>
                    </div>
                </div>
            </div>
    </div>
    </div>
</body>
</html>
